<?php

/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
*/
/**
 * Description of AdminInfo
 *
 * @author hoangle
 */
class AdminInfo {

//put your code here
    private $db;
    
    public function  __construct() {
        $this->db = Zend_Registry::get('db');
    }

    /**
     * @desc Get data info admin user
     * @param <array> $arrParams
     * @return <array>
     */
    public function getAdminInfo($arrParams) {
        try {
            $stmt = $this->db->prepare('CALL sp_getAdminInfo(:p_email);');
            $stmt->bindValue('p_email', $arrParams['email']);
            $stmt->execute();
            $rows = $stmt->fetch();
            $stmt->closeCursor();
        }
        catch (Zend_Db_Exception $e) {
            throw new Zend_Exception($e->getMessage(), 11);
        }
        return $rows;
    }
    
}

?>
